import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [{
        path: "/",
        name: "home",
        component: HomeView,
    },
    {
        path: "/province",
        name: "province",
        component: () =>
            import ("../views/province.vue"),
    },
    {
        path: "/country",
        name: "country",
        component: () =>
            import ("../views/country.vue"),
    },
    {
        path: "/chart",
        name: "chart",
        component: () =>
            import ("../views/chart.vue"),
    },
    {
        path: "/tree",
        name: "tree",
        component: () =>
            import ("../views/tree.vue"),
    },
];

const router = new VueRouter({
    routes,
});

export default router;